// 封装每一个接口的请求
import request from '@/utils/request.js'
/**
 *获取歌单列表
 * @param {Object} params {limit:获取的条数}
 * @returns promise
 */
export function getSongList (params) {
  return request({
    url: '/personalized',
    params
  })
}
/**
 *获取推荐最新音乐
 * @param {*} params {limit:获取的条数}
 * @returns promise
 */
export function getNewSongList (params) {
  return request({
    url: '/personalized/newsong',
    params
  })
}
